<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>sysmonpsv: xsysmonpsv_common.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">sysmonpsv
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="pages.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xsysmonpsv__common_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xsysmonpsv_common.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6a12e8784552b16f6284da99b9ebf222"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a6a12e8784552b16f6284da99b9ebf222">XSysMonPsv_TempOffset</a> (<a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30">XSysMonPsv_TempType</a> Type)</td></tr>
<tr class="memdesc:a6a12e8784552b16f6284da99b9ebf222"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the register offset for the different type.  <a href="#a6a12e8784552b16f6284da99b9ebf222">More...</a><br/></td></tr>
<tr class="separator:a6a12e8784552b16f6284da99b9ebf222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1941867eda39665e89f3ff23895baed4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a1941867eda39665e89f3ff23895baed4">XSysMonPsv_TempThreshOffset</a> (<a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91be">XSysMonPsv_TempEvt</a> Event, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a> Dir, u32 *Offset)</td></tr>
<tr class="memdesc:a1941867eda39665e89f3ff23895baed4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the temperature threshold (upper or lower) offset.  <a href="#a1941867eda39665e89f3ff23895baed4">More...</a><br/></td></tr>
<tr class="separator:a1941867eda39665e89f3ff23895baed4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6198b0ca31176e635868334bd2ccaba2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a6198b0ca31176e635868334bd2ccaba2">XSysMonPsv_SupplyOffset</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, int Supply)</td></tr>
<tr class="memdesc:a6198b0ca31176e635868334bd2ccaba2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the supply offset.  <a href="#a6198b0ca31176e635868334bd2ccaba2">More...</a><br/></td></tr>
<tr class="separator:a6198b0ca31176e635868334bd2ccaba2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#adde53ad4ac2dfe9a1bdc4a62bb7dd1a2">XSysMonPsv_SupplyThreshOffset</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, int Supply, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a> Dir)</td></tr>
<tr class="memdesc:adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the supply threshold (upper or lower) offset.  <a href="#adde53ad4ac2dfe9a1bdc4a62bb7dd1a2">More...</a><br/></td></tr>
<tr class="separator:adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbec82431fdcf7cbea444f04bc165417"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#adbec82431fdcf7cbea444f04bc165417">XSysMonPsv_Q8P7ToCelsius</a> (u32 RawData, int *Val, int *Val2)</td></tr>
<tr class="memdesc:adbec82431fdcf7cbea444f04bc165417"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts Q8P7 To Celsius.  <a href="#adbec82431fdcf7cbea444f04bc165417">More...</a><br/></td></tr>
<tr class="separator:adbec82431fdcf7cbea444f04bc165417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b066fb52f89d2245a6ac21e807ffa17"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a5b066fb52f89d2245a6ac21e807ffa17">XSysMonPsv_CelsiusToQ8P7</a> (u32 *RawData, int Val, int Val2)</td></tr>
<tr class="memdesc:a5b066fb52f89d2245a6ac21e807ffa17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts Celsius To Q8P7.  <a href="#a5b066fb52f89d2245a6ac21e807ffa17">More...</a><br/></td></tr>
<tr class="separator:a5b066fb52f89d2245a6ac21e807ffa17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca75f045ad9bd684a8604c4b00934acd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#aca75f045ad9bd684a8604c4b00934acd">XSysMonPsv_SupplyRawToProcessed</a> (int RawData, int *Val, int *Val2)</td></tr>
<tr class="memdesc:aca75f045ad9bd684a8604c4b00934acd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts raw data to processed.  <a href="#aca75f045ad9bd684a8604c4b00934acd">More...</a><br/></td></tr>
<tr class="separator:aca75f045ad9bd684a8604c4b00934acd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac46eb5747fd8d8f552e675cf7794dd7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#ac46eb5747fd8d8f552e675cf7794dd7b">XSysMonPsv_SupplyProcessedToRaw</a> (int Val, int Val2, u32 RegVal, u32 *RawData)</td></tr>
<tr class="memdesc:ac46eb5747fd8d8f552e675cf7794dd7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts processed data to raw.  <a href="#ac46eb5747fd8d8f552e675cf7794dd7b">More...</a><br/></td></tr>
<tr class="separator:ac46eb5747fd8d8f552e675cf7794dd7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a988ca4d7c214731f9965743cf77a639a"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a988ca4d7c214731f9965743cf77a639a">XSysMonPsv_IsAlarmPresent</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, XSysMonPsv_Supply Supply)</td></tr>
<tr class="memdesc:a988ca4d7c214731f9965743cf77a639a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the supply value has exceeded the set threshold values.  <a href="#a988ca4d7c214731f9965743cf77a639a">More...</a><br/></td></tr>
<tr class="separator:a988ca4d7c214731f9965743cf77a639a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b989c85810f2390a4731ff676240825"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a6b989c85810f2390a4731ff676240825">XSysMonPsv_ClearAlarm</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, XSysMonPsv_Supply Supply)</td></tr>
<tr class="memdesc:a6b989c85810f2390a4731ff676240825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears alarm status.  <a href="#a6b989c85810f2390a4731ff676240825">More...</a><br/></td></tr>
<tr class="separator:a6b989c85810f2390a4731ff676240825"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ae75168c5bf36923920778a77c15190"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a4ae75168c5bf36923920778a77c15190">XSysMonPsv_InterruptEnable</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 Mask, u8 IntrNum)</td></tr>
<tr class="memdesc:a4ae75168c5bf36923920778a77c15190"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the specified interrupts in the device.  <a href="#a4ae75168c5bf36923920778a77c15190">More...</a><br/></td></tr>
<tr class="separator:a4ae75168c5bf36923920778a77c15190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a780deadc037ba622ecb6dd6ce2e2f559"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a780deadc037ba622ecb6dd6ce2e2f559">XSysMonPsv_InterruptDisable</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 Mask, u8 IntrNum)</td></tr>
<tr class="memdesc:a780deadc037ba622ecb6dd6ce2e2f559"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the specified interrupts in the device.  <a href="#a780deadc037ba622ecb6dd6ce2e2f559">More...</a><br/></td></tr>
<tr class="separator:a780deadc037ba622ecb6dd6ce2e2f559"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd3c28bb9cea2402997c6ee2950330c7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#abd3c28bb9cea2402997c6ee2950330c7">XSysMonPsv_InterruptGetStatus</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 *IntrStatus)</td></tr>
<tr class="memdesc:abd3c28bb9cea2402997c6ee2950330c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt status read from Interrupt Status Register(ISR).  <a href="#abd3c28bb9cea2402997c6ee2950330c7">More...</a><br/></td></tr>
<tr class="separator:abd3c28bb9cea2402997c6ee2950330c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a396ab64a4d49e54dfbe618b1f827678f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a396ab64a4d49e54dfbe618b1f827678f">XSysMonPsv_InterruptClear</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 Mask)</td></tr>
<tr class="memdesc:a396ab64a4d49e54dfbe618b1f827678f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the specified interrupts in the Interrupt Status Register(ISR).  <a href="#a396ab64a4d49e54dfbe618b1f827678f">More...</a><br/></td></tr>
<tr class="separator:a396ab64a4d49e54dfbe618b1f827678f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56422c5c70128f1ccedb5b93ad2b48bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8c.html#a56422c5c70128f1ccedb5b93ad2b48bd">XSysMonPsv_UnlockRegspace</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr)</td></tr>
<tr class="memdesc:a56422c5c70128f1ccedb5b93ad2b48bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlocks the register space of InstancePtr hardware.  <a href="#a56422c5c70128f1ccedb5b93ad2b48bd">More...</a><br/></td></tr>
<tr class="separator:a56422c5c70128f1ccedb5b93ad2b48bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a5b066fb52f89d2245a6ac21e807ffa17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_CelsiusToQ8P7 </td>
          <td>(</td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>RawData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts Celsius To Q8P7. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RawData</td><td>Raw Temperature Data. </td></tr>
    <tr><td class="paramname">Val</td><td>Numerator for covnersion to deg C. </td></tr>
    <tr><td class="paramname">Val2</td><td>Denominator for conversion to deg C in Q8.7 format.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a class="anchor" id="a6b989c85810f2390a4731ff676240825"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_ClearAlarm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XSysMonPsv_Supply&#160;</td>
          <td class="paramname"><em>Supply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears alarm status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if new data available. False if new data isn't available. Invalid if the Supply hasn't been configured. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, <a class="el" href="group__sysmonpsv__api.html#ga87c8cb949820a8865031d158d1c011b7">XSYSMONPSV_ALARM_FLAG0</a>, <a class="el" href="group__sysmonpsv__api.html#ga9a679ed94a444b7c9bfe9932e281d842">XSYSMONPSV_INVALID</a>, <a class="el" href="group__sysmonpsv__api.html#ga916b6265b6d630fc8678e714e3123dfd">XSYSMONPSV_INVALID_SUPPLY</a>, <a class="el" href="xsysmonpsv__direct_8c.html#af4320c775170d738c09e9514f8ed0578">XSysMonPsv_ReadReg32()</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a396ab64a4d49e54dfbe618b1f827678f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_InterruptClear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the specified interrupts in the Interrupt Status Register(ISR). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the struct InstancePtr. </td></tr>
    <tr><td class="paramname">Mask</td><td>32 bit-mask of the interrupts to be cleared. Bit positions of 1 will be cleared. Bit positions of 0 will not change the previous interrupt status.* </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gad6a0d0fc444bc07d4bea0576fb87bb9d">XSYSMONPSV_ISR_OFFSET</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a780deadc037ba622ecb6dd6ce2e2f559"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_InterruptDisable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>IntrNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the specified interrupts in the device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Mask</td><td>32 bit-mask of the interrupts to be enabled. Bit positions of 1 will be disabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSYSMONPSV_IDR_* bits defined in InstancePtr.h. </td></tr>
    <tr><td class="paramname">IntrNum</td><td>Interrupt disable register to be used</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- XST_FAILURE if error<ul>
<li>XST_SUCCESS if successful </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gae9d0fd1d1e8eb1d4ac3a2fedf9887db3">XSYSMONPSV_IDR0_OFFSET</a>, <a class="el" href="group__sysmonpsv__api.html#ga0531dfb8a91f71cfa8e31bb0abc3d97e">XSYSMONPSV_PCSR_LOCK</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ae75168c5bf36923920778a77c15190"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_InterruptEnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>IntrNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the specified interrupts in the device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Mask</td><td>32 bit-mask of the interrupts to be enabled. Bit positions of 1 will be enabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSYSMON_IER_* bits defined in InstancePtr.h. </td></tr>
    <tr><td class="paramname">IntrNum</td><td>Interrupt enable register to be used</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- XST_FAILURE if error<ul>
<li>XST_SUCCESS if successful </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gaedc7b72f6668bf1ebcec44de5916a982">XSYSMONPSV_IER0_OFFSET</a>, <a class="el" href="group__sysmonpsv__api.html#ga0531dfb8a91f71cfa8e31bb0abc3d97e">XSYSMONPSV_PCSR_LOCK</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

<p>Referenced by <a class="el" href="xsysmonpsv__services_8h.html#a27ee2cbf4e86a5e66f8ed744187a805f">XSysMonPsv_EnableVoltageEvents()</a>.</p>

</div>
</div>
<a class="anchor" id="abd3c28bb9cea2402997c6ee2950330c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_InterruptGetStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>IntrStatus</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt status read from Interrupt Status Register(ISR). </p>
<p>Use the XSYSMONPSV_ISR* constants defined in InstancePtr.h to interpret the returned value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">IntrStatus</td><td>32-bit value representing the contents of the Interrupt Status Register (ISR).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- -XST_FAILURE when NULL Instance is passed<ul>
<li>XST_SUCCESS if succeeds </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gad6a0d0fc444bc07d4bea0576fb87bb9d">XSYSMONPSV_ISR_OFFSET</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#af4320c775170d738c09e9514f8ed0578">XSysMonPsv_ReadReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a988ca4d7c214731f9965743cf77a639a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_IsAlarmPresent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XSysMonPsv_Supply&#160;</td>
          <td class="paramname"><em>Supply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if the supply value has exceeded the set threshold values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if new data available. False if new data is not available. Invalid if the Supply has not been configured. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, <a class="el" href="group__sysmonpsv__api.html#ga87c8cb949820a8865031d158d1c011b7">XSYSMONPSV_ALARM_FLAG0</a>, <a class="el" href="group__sysmonpsv__api.html#ga9a679ed94a444b7c9bfe9932e281d842">XSYSMONPSV_INVALID</a>, <a class="el" href="group__sysmonpsv__api.html#ga916b6265b6d630fc8678e714e3123dfd">XSYSMONPSV_INVALID_SUPPLY</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#af4320c775170d738c09e9514f8ed0578">XSysMonPsv_ReadReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="adbec82431fdcf7cbea444f04bc165417"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_Q8P7ToCelsius </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>RawData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts Q8P7 To Celsius. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RawData</td><td>Raw temperature Data. </td></tr>
    <tr><td class="paramname">Val</td><td>Value in Q8P7 format. </td></tr>
    <tr><td class="paramname">Val2</td><td>Constant 128.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xsysmonpsv__common_8h.html#a4afca72fb6d0ad4247f86d339a7c15ac">twoscomp</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#ga68d41d5890402def819f92c449b6aa64">XSysMonPsv_ReadTempProcessed()</a>, and <a class="el" href="group__sysmonpsv__api.html#ga84625720834d5e07d7f4fe9d14bb43f8">XSysMonPsv_ReadTempProcessedSat()</a>.</p>

</div>
</div>
<a class="anchor" id="a6198b0ca31176e635868334bd2ccaba2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_SupplyOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Supply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the supply offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the <a class="el" href="struct_x_sys_mon_psv.html" title="The XSysmonPsv driver instance data. ">XSysMonPsv</a> instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Offset supply. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, and <a class="el" href="group__sysmonpsv__api.html#gaea6632703187e0a828a7c4200132af8a">XSYSMONPSV_SUPPLY</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#gad9a7e5df580de9e887d2a32e63506af6">XSysMonPsv_ReadSupplyProcessed()</a>, and <a class="el" href="group__sysmonpsv__api.html#gadae2aa6363d44df1bd536d34b057e005">XSysMonPsv_ReadSupplyRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="ac46eb5747fd8d8f552e675cf7794dd7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_SupplyProcessedToRaw </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>RegVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>RawData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts processed data to raw. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Val</td><td>Numerator for conversion to volts. </td></tr>
    <tr><td class="paramname">Val2</td><td>Denominator for conversion to volts. </td></tr>
    <tr><td class="paramname">RegVal</td><td>Register Value. </td></tr>
    <tr><td class="paramname">RawData</td><td>Converted Raw data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#ga6983143ca4186de09ea4698a1f716050">XSYSMONPSV_LOW_SAT</a>, <a class="el" href="group__sysmonpsv__api.html#gae910b542514c585b0c21095bfafda0d1">XSYSMONPSV_LOW_SAT_SIGNED</a>, <a class="el" href="xsysmonpsv__common_8h.html#aa0a6c963122b8943036348714117761d">XSYSMONPSV_LOW_SAT_SIGNED_VAL</a>, <a class="el" href="xsysmonpsv__common_8h.html#af705be69c8ce9bae5e89d20d4c430266">XSYSMONPSV_LOW_SAT_VAL</a>, <a class="el" href="group__sysmonpsv__api.html#ga3bbe144c26e48e98c87ee1540e24f892">XSYSMONPSV_SUPPLY_FMT_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#gacf8addb42ba9a943a877e5d3e2d59478">XSYSMONPSV_SUPPLY_FMT_SHIFT</a>, <a class="el" href="group__sysmonpsv__api.html#ga5e282dee35af566569b16ec6b3610b21">XSYSMONPSV_SUPPLY_MODE_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#ga8d056928492e28137d18acdd7ee2bebd">XSYSMONPSV_SUPPLY_MODE_SHIFT</a>, <a class="el" href="group__sysmonpsv__api.html#ga8c544d085eddc2aaf125abab345c6b19">XSYSMONPSV_UP_SAT</a>, <a class="el" href="group__sysmonpsv__api.html#ga35ecf3166abe7254e2c59db1df1b9a6f">XSYSMONPSV_UP_SAT_SIGNED</a>, <a class="el" href="xsysmonpsv__common_8h.html#ac51ecf1a7056923d5ee7b2d79c2ad917">XSYSMONPSV_UP_SAT_SIGNED_VAL</a>, and <a class="el" href="xsysmonpsv__common_8h.html#acf16c31d3d1a905cce7a11808c1b2f22">XSYSMONPSV_UP_SAT_VAL</a>.</p>

</div>
</div>
<a class="anchor" id="aca75f045ad9bd684a8604c4b00934acd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_SupplyRawToProcessed </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>RawData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts raw data to processed. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RawData</td><td>Raw voltage data. </td></tr>
    <tr><td class="paramname">Val</td><td>Numerator for conversion to volts. </td></tr>
    <tr><td class="paramname">Val2</td><td>Denominator for conversion to volts.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#ga3bbe144c26e48e98c87ee1540e24f892">XSYSMONPSV_SUPPLY_FMT_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#gacf8addb42ba9a943a877e5d3e2d59478">XSYSMONPSV_SUPPLY_FMT_SHIFT</a>, <a class="el" href="group__sysmonpsv__api.html#gaaf2f57b40ce3352060e2d2b5a251de9a">XSYSMONPSV_SUPPLY_MANTISSA_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#ga6b8df8b3d4dd4bafb488ee19ee1f731a">XSYSMONPSV_SUPPLY_MANTISSA_SIGN</a>, <a class="el" href="group__sysmonpsv__api.html#ga5e282dee35af566569b16ec6b3610b21">XSYSMONPSV_SUPPLY_MODE_MASK</a>, and <a class="el" href="group__sysmonpsv__api.html#ga8d056928492e28137d18acdd7ee2bebd">XSYSMONPSV_SUPPLY_MODE_SHIFT</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#gad9a7e5df580de9e887d2a32e63506af6">XSysMonPsv_ReadSupplyProcessed()</a>.</p>

</div>
</div>
<a class="anchor" id="adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_SupplyThreshOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Supply</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a>&#160;</td>
          <td class="paramname"><em>Dir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the supply threshold (upper or lower) offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the <a class="el" href="struct_x_sys_mon_psv.html" title="The XSysmonPsv driver instance data. ">XSysMonPsv</a> instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply. </td></tr>
    <tr><td class="paramname">Dir</td><td>Type of the direction - falling or rising.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Upper or lower threshold offset. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86ae4d5137bc186658234bb91118e87637c">XSYSMONPSV_EV_DIR_RISING</a>, <a class="el" href="group__sysmonpsv__api.html#gaa118f452e9166fa0d8862b396311462f">XSYSMONPSV_SUPPLY_TH_LOWER</a>, and <a class="el" href="group__sysmonpsv__api.html#ga7ee33c6423739a515a684980176551e0">XSYSMONPSV_SUPPLY_TH_UPPER</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#ga67c461a10a691c449c71cab32fac6a48">XSysMonPsv_GetSupplyThresholdLower()</a>, <a class="el" href="group__sysmonpsv__api.html#ga5b0151be3a224dd63fea642c1fe585ad">XSysMonPsv_GetSupplyThresholdUpper()</a>, <a class="el" href="group__sysmonpsv__api.html#ga91085a71b3a47feced9334972d44fe42">XSysMonPsv_SetSupplyThresholdLower()</a>, and <a class="el" href="group__sysmonpsv__api.html#ga9ad66ba4141b25c3c0d88d2cc9b6da65">XSysMonPsv_SetSupplyThresholdUpper()</a>.</p>

</div>
</div>
<a class="anchor" id="a6a12e8784552b16f6284da99b9ebf222"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_TempOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30">XSysMonPsv_TempType</a>&#160;</td>
          <td class="paramname"><em>Type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the register offset for the different type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Type</td><td>Max or Min Temperature Type</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>-XST_FAILURE when fails -Register offset </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gaf0370703ede011a34abca3fe003a9fd3">XSYSMONPSV_DEVICE_TEMP_MAX</a>, <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30af77834f3af80ba55987a6dd3320090df">XSYSMONPSV_TEMP</a>, <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30ae89a5e61e7817a759c6a8e4c041cd394">XSYSMONPSV_TEMP_MAX</a>, and <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30af47c7b392627575724efb983f3e1f2b3">XSYSMONPSV_TEMP_MIN</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#ga68d41d5890402def819f92c449b6aa64">XSysMonPsv_ReadTempProcessed()</a>, and <a class="el" href="group__sysmonpsv__api.html#ga215a6613a637b848cdd432f6f5678c15">XSysMonPsv_ReadTempRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="a1941867eda39665e89f3ff23895baed4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_TempThreshOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91be">XSysMonPsv_TempEvt</a>&#160;</td>
          <td class="paramname"><em>Event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a>&#160;</td>
          <td class="paramname"><em>Dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>Offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the temperature threshold (upper or lower) offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Event</td><td>Temp or OT event type. </td></tr>
    <tr><td class="paramname">Dir</td><td>Falling or rising direction </td></tr>
    <tr><td class="paramname">Offset</td><td>Upper or lower threshold offset.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- -XST_FAILURE when fails<ul>
<li>XST_SUCCESS when correct params are used. </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gad0c0ffd131b82adc94d7acddc0e62215">XSYSMONPSV_DEVICE_TEMP_TH_FALLING</a>, <a class="el" href="group__sysmonpsv__api.html#ga0eecfe6de4f7888f7891160ce19ad4c8">XSYSMONPSV_DEVICE_TEMP_TH_RISING</a>, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86ae4d5137bc186658234bb91118e87637c">XSYSMONPSV_EV_DIR_RISING</a>, <a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91bea311033c65e024c7db57d9f2acecd1c3e">XSYSMONPSV_OT_EVENT</a>, <a class="el" href="group__sysmonpsv__api.html#gac5adab57ea2f5178c983b7498f90c47c">XSYSMONPSV_OT_TEMP_TH_FALLING</a>, <a class="el" href="group__sysmonpsv__api.html#ga9bdf5ec8bcda757e1e6ee5066cec61c9">XSYSMONPSV_OT_TEMP_TH_RISING</a>, and <a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91beab55778d23fd3e17972e5f218cea9a7e8">XSYSMONPSV_TEMP_EVENT</a>.</p>

</div>
</div>
<a class="anchor" id="a56422c5c70128f1ccedb5b93ad2b48bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_UnlockRegspace </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unlocks the register space of InstancePtr hardware. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xsysmonpsv__common_8h.html#a4a8eae39bcb70012826037830d666b7f">XSYSMONPSV_LOCK_CODE</a>, <a class="el" href="group__sysmonpsv__api.html#ga0531dfb8a91f71cfa8e31bb0abc3d97e">XSYSMONPSV_PCSR_LOCK</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
